package com.yujie.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 字典表(Dictionary)实体类
 *
 * @author wangyujie
 * @since 2023-08-14 20:33:28
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Dictionary implements Serializable {
    private static final long serialVersionUID = -51916029543238811L;
    /**
     * 字典ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 字典编码
     */
    @TableField(value = "code")
    private String code;

    /**
     * 字典类型
     */
    @TableField(value = "type")
    private String type;

    /**
     * 字典名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 字典值
     */
    @TableField(value = "value")
    private String value;

    /**
     * 父字典ID
     */
    @TableField(value = "parent_id")
    private Integer parentId;

    /**
     * 排序字段
     */
    @TableField(value = "sort_order")
    private Integer sortOrder;

    /**
     * 是否可用
     */
    @TableField(value = "delete_flag")
    private Integer deleteFlag;

    /**
     * 创建时间
     */
    @TableField(value = "created_at")
    private Date createdAt;

    /**
     * 修改时间
     */
    @TableField(value = "updated_at")
    private Date updatedAt;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;
}

